/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";

var $protobuf = require("protobufjs/minimal");

// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});

$root.MesType = (function () {

    /**
     * Properties of a MesType.
     * @exports IMesType
     * @interface IMesType
     * @property {string|null} [uuid] MesType uuid
     * @property {string|null} [upper] MesType upper
     * @property {string|null} [validFlag] MesType validFlag
     * @property {string|null} [creator] MesType creator
     * @property {string|null} [createTime] MesType createTime
     * @property {string|null} [creatorIp] MesType creatorIp
     * @property {string|null} [lastModifier] MesType lastModifier
     * @property {string|null} [lastModifyTime] MesType lastModifyTime
     * @property {string|null} [lastModifierIp] MesType lastModifierIp
     * @property {string|null} [ownerOrganize] MesType ownerOrganize
     * @property {string|null} [ownerRole] MesType ownerRole
     * @property {string|null} [serNum] MesType serNum
     * @property {string|null} [serName] MesType serName
     */

    /**
     * Constructs a new MesType.
     * @exports MesType
     * @classdesc Represents a MesType.
     * @implements IMesType
     * @constructor
     * @param {IMesType=} [properties] Properties to set
     */
    function MesType(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * MesType uuid.
     * @member {string} uuid
     * @memberof MesType
     * @instance
     */
    MesType.prototype.uuid = "";

    /**
     * MesType upper.
     * @member {string} upper
     * @memberof MesType
     * @instance
     */
    MesType.prototype.upper = "";

    /**
     * MesType validFlag.
     * @member {string} validFlag
     * @memberof MesType
     * @instance
     */
    MesType.prototype.validFlag = "";

    /**
     * MesType creator.
     * @member {string} creator
     * @memberof MesType
     * @instance
     */
    MesType.prototype.creator = "";

    /**
     * MesType createTime.
     * @member {string} createTime
     * @memberof MesType
     * @instance
     */
    MesType.prototype.createTime = "";

    /**
     * MesType creatorIp.
     * @member {string} creatorIp
     * @memberof MesType
     * @instance
     */
    MesType.prototype.creatorIp = "";

    /**
     * MesType lastModifier.
     * @member {string} lastModifier
     * @memberof MesType
     * @instance
     */
    MesType.prototype.lastModifier = "";

    /**
     * MesType lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof MesType
     * @instance
     */
    MesType.prototype.lastModifyTime = "";

    /**
     * MesType lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof MesType
     * @instance
     */
    MesType.prototype.lastModifierIp = "";

    /**
     * MesType ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof MesType
     * @instance
     */
    MesType.prototype.ownerOrganize = "";

    /**
     * MesType ownerRole.
     * @member {string} ownerRole
     * @memberof MesType
     * @instance
     */
    MesType.prototype.ownerRole = "";

    /**
     * MesType serNum.
     * @member {string} serNum
     * @memberof MesType
     * @instance
     */
    MesType.prototype.serNum = "";

    /**
     * MesType serName.
     * @member {string} serName
     * @memberof MesType
     * @instance
     */
    MesType.prototype.serName = "";

    /**
     * Creates a new MesType instance using the specified properties.
     * @function create
     * @memberof MesType
     * @static
     * @param {IMesType=} [properties] Properties to set
     * @returns {MesType} MesType instance
     */
    MesType.create = function create(properties) {
        return new MesType(properties);
    };

    /**
     * Encodes the specified MesType message. Does not implicitly {@link MesType.verify|verify} messages.
     * @function encode
     * @memberof MesType
     * @static
     * @param {IMesType} message MesType message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    MesType.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serName != null && message.hasOwnProperty("serName"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serName);
        return writer;
    };

    /**
     * Encodes the specified MesType message, length delimited. Does not implicitly {@link MesType.verify|verify} messages.
     * @function encodeDelimited
     * @memberof MesType
     * @static
     * @param {IMesType} message MesType message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    MesType.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a MesType message from the specified reader or buffer.
     * @function decode
     * @memberof MesType
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {MesType} MesType
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    MesType.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.MesType();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
                case 1:
                    message.uuid = reader.string();
                    break;
                case 2:
                    message.upper = reader.string();
                    break;
                case 3:
                    message.validFlag = reader.string();
                    break;
                case 4:
                    message.creator = reader.string();
                    break;
                case 5:
                    message.createTime = reader.string();
                    break;
                case 6:
                    message.creatorIp = reader.string();
                    break;
                case 7:
                    message.lastModifier = reader.string();
                    break;
                case 8:
                    message.lastModifyTime = reader.string();
                    break;
                case 9:
                    message.lastModifierIp = reader.string();
                    break;
                case 10:
                    message.ownerOrganize = reader.string();
                    break;
                case 11:
                    message.ownerRole = reader.string();
                    break;
                case 12:
                    message.serNum = reader.string();
                    break;
                case 13:
                    message.serName = reader.string();
                    break;
                default:
                    reader.skipType(tag & 7);
                    break;
            }
        }
        return message;
    };

    /**
     * Decodes a MesType message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof MesType
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {MesType} MesType
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    MesType.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a MesType message.
     * @function verify
     * @memberof MesType
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    MesType.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serName != null && message.hasOwnProperty("serName"))
            if (!$util.isString(message.serName))
                return "serName: string expected";
        return null;
    };

    /**
     * Creates a MesType message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof MesType
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {MesType} MesType
     */
    MesType.fromObject = function fromObject(object) {
        if (object instanceof $root.MesType)
            return object;
        var message = new $root.MesType();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serName != null)
            message.serName = String(object.serName);
        return message;
    };

    /**
     * Creates a plain object from a MesType message. Also converts values to other types if specified.
     * @function toObject
     * @memberof MesType
     * @static
     * @param {MesType} message MesType
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    MesType.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serName = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serName != null && message.hasOwnProperty("serName"))
            object.serName = message.serName;
        return object;
    };

    /**
     * Converts this MesType to JSON.
     * @function toJSON
     * @memberof MesType
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    MesType.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return MesType;
})();

$root.MesTypeCondition = (function () {

    /**
     * Properties of a MesTypeCondition.
     * @exports IMesTypeCondition
     * @interface IMesTypeCondition
     * @property {string|null} [uuid] MesTypeCondition uuid
     * @property {string|null} [upper] MesTypeCondition upper
     * @property {string|null} [validFlag] MesTypeCondition validFlag
     * @property {string|null} [creator] MesTypeCondition creator
     * @property {string|null} [createTime] MesTypeCondition createTime
     * @property {string|null} [creatorIp] MesTypeCondition creatorIp
     * @property {string|null} [lastModifier] MesTypeCondition lastModifier
     * @property {string|null} [lastModifyTime] MesTypeCondition lastModifyTime
     * @property {string|null} [lastModifierIp] MesTypeCondition lastModifierIp
     * @property {string|null} [ownerOrganize] MesTypeCondition ownerOrganize
     * @property {string|null} [ownerRole] MesTypeCondition ownerRole
     * @property {string|null} [serNum] MesTypeCondition serNum
     * @property {string|null} [serName] MesTypeCondition serName
     * @property {Array.<string>|null} [uuidList] MesTypeCondition uuidList
     */

    /**
     * Constructs a new MesTypeCondition.
     * @exports MesTypeCondition
     * @classdesc Represents a MesTypeCondition.
     * @implements IMesTypeCondition
     * @constructor
     * @param {IMesTypeCondition=} [properties] Properties to set
     */
    function MesTypeCondition(properties) {
        this.uuidList = [];
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * MesTypeCondition uuid.
     * @member {string} uuid
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.uuid = "";

    /**
     * MesTypeCondition upper.
     * @member {string} upper
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.upper = "";

    /**
     * MesTypeCondition validFlag.
     * @member {string} validFlag
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.validFlag = "";

    /**
     * MesTypeCondition creator.
     * @member {string} creator
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.creator = "";

    /**
     * MesTypeCondition createTime.
     * @member {string} createTime
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.createTime = "";

    /**
     * MesTypeCondition creatorIp.
     * @member {string} creatorIp
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.creatorIp = "";

    /**
     * MesTypeCondition lastModifier.
     * @member {string} lastModifier
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.lastModifier = "";

    /**
     * MesTypeCondition lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.lastModifyTime = "";

    /**
     * MesTypeCondition lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.lastModifierIp = "";

    /**
     * MesTypeCondition ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.ownerOrganize = "";

    /**
     * MesTypeCondition ownerRole.
     * @member {string} ownerRole
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.ownerRole = "";

    /**
     * MesTypeCondition serNum.
     * @member {string} serNum
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.serNum = "";

    /**
     * MesTypeCondition serName.
     * @member {string} serName
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.serName = "";

    /**
     * MesTypeCondition uuidList.
     * @member {Array.<string>} uuidList
     * @memberof MesTypeCondition
     * @instance
     */
    MesTypeCondition.prototype.uuidList = $util.emptyArray;

    /**
     * Creates a new MesTypeCondition instance using the specified properties.
     * @function create
     * @memberof MesTypeCondition
     * @static
     * @param {IMesTypeCondition=} [properties] Properties to set
     * @returns {MesTypeCondition} MesTypeCondition instance
     */
    MesTypeCondition.create = function create(properties) {
        return new MesTypeCondition(properties);
    };

    /**
     * Encodes the specified MesTypeCondition message. Does not implicitly {@link MesTypeCondition.verify|verify} messages.
     * @function encode
     * @memberof MesTypeCondition
     * @static
     * @param {IMesTypeCondition} message MesTypeCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    MesTypeCondition.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serName != null && message.hasOwnProperty("serName"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serName);
        if (message.uuidList != null && message.uuidList.length)
            for (var i = 0; i < message.uuidList.length; ++i)
                writer.uint32(/* id 14, wireType 2 =*/114).string(message.uuidList[i]);
        return writer;
    };

    /**
     * Encodes the specified MesTypeCondition message, length delimited. Does not implicitly {@link MesTypeCondition.verify|verify} messages.
     * @function encodeDelimited
     * @memberof MesTypeCondition
     * @static
     * @param {IMesTypeCondition} message MesTypeCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    MesTypeCondition.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a MesTypeCondition message from the specified reader or buffer.
     * @function decode
     * @memberof MesTypeCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {MesTypeCondition} MesTypeCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    MesTypeCondition.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.MesTypeCondition();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
                case 1:
                    message.uuid = reader.string();
                    break;
                case 2:
                    message.upper = reader.string();
                    break;
                case 3:
                    message.validFlag = reader.string();
                    break;
                case 4:
                    message.creator = reader.string();
                    break;
                case 5:
                    message.createTime = reader.string();
                    break;
                case 6:
                    message.creatorIp = reader.string();
                    break;
                case 7:
                    message.lastModifier = reader.string();
                    break;
                case 8:
                    message.lastModifyTime = reader.string();
                    break;
                case 9:
                    message.lastModifierIp = reader.string();
                    break;
                case 10:
                    message.ownerOrganize = reader.string();
                    break;
                case 11:
                    message.ownerRole = reader.string();
                    break;
                case 12:
                    message.serNum = reader.string();
                    break;
                case 13:
                    message.serName = reader.string();
                    break;
                case 14:
                    if (!(message.uuidList && message.uuidList.length))
                        message.uuidList = [];
                    message.uuidList.push(reader.string());
                    break;
                default:
                    reader.skipType(tag & 7);
                    break;
            }
        }
        return message;
    };

    /**
     * Decodes a MesTypeCondition message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof MesTypeCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {MesTypeCondition} MesTypeCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    MesTypeCondition.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a MesTypeCondition message.
     * @function verify
     * @memberof MesTypeCondition
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    MesTypeCondition.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serName != null && message.hasOwnProperty("serName"))
            if (!$util.isString(message.serName))
                return "serName: string expected";
        if (message.uuidList != null && message.hasOwnProperty("uuidList")) {
            if (!Array.isArray(message.uuidList))
                return "uuidList: array expected";
            for (var i = 0; i < message.uuidList.length; ++i)
                if (!$util.isString(message.uuidList[i]))
                    return "uuidList: string[] expected";
        }
        return null;
    };

    /**
     * Creates a MesTypeCondition message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof MesTypeCondition
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {MesTypeCondition} MesTypeCondition
     */
    MesTypeCondition.fromObject = function fromObject(object) {
        if (object instanceof $root.MesTypeCondition)
            return object;
        var message = new $root.MesTypeCondition();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serName != null)
            message.serName = String(object.serName);
        if (object.uuidList) {
            if (!Array.isArray(object.uuidList))
                throw TypeError(".MesTypeCondition.uuidList: array expected");
            message.uuidList = [];
            for (var i = 0; i < object.uuidList.length; ++i)
                message.uuidList[i] = String(object.uuidList[i]);
        }
        return message;
    };

    /**
     * Creates a plain object from a MesTypeCondition message. Also converts values to other types if specified.
     * @function toObject
     * @memberof MesTypeCondition
     * @static
     * @param {MesTypeCondition} message MesTypeCondition
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    MesTypeCondition.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.arrays || options.defaults)
            object.uuidList = [];
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serName = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serName != null && message.hasOwnProperty("serName"))
            object.serName = message.serName;
        if (message.uuidList && message.uuidList.length) {
            object.uuidList = [];
            for (var j = 0; j < message.uuidList.length; ++j)
                object.uuidList[j] = message.uuidList[j];
        }
        return object;
    };

    /**
     * Converts this MesTypeCondition to JSON.
     * @function toJSON
     * @memberof MesTypeCondition
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    MesTypeCondition.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return MesTypeCondition;
})();

module.exports = $root;
